package com.attms.domain.EmployeeFactory;

import com.attms.domain.AbsentSetter;
import com.attms.domain.Employee;

public class Dmanager extends Employee{
    public Dmanager(Employee employee, AbsentSetter absentSetter){
        // 处理请求
        this.setE_NAME(employee.getE_NAME());
        this.setE_GENDER(employee.getE_GENDER());
        this.setE_BIRTH(employee.getE_BIRTH());
        this.setE_START(employee.getE_START());
        this.setE_JOB(employee.getE_JOB());
        this.setE_PASSWORD(employee.getE_PASSWORD());
        this.setE_DEPARTMENT(employee.getE_DEPARTMENT());
        this.setE_STATE(1);// 默认为缺勤/未签到状态
        this.setE_ABSHOUR(0);

        setAbsent(absentSetter);
        
    }

    public void setAbsent(AbsentSetter absentSetter){
        absentSetter.visit(this);
    }
}
